//
//  ProductModel.m
//  WorkNest
//
//  Created by qbm360 on 15/7/8.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "ProductModel.h"

@implementation ProductModel

//@synthesize name = _name;
//@synthesize price = _price;
//@synthesize count = _count;
//@synthesize designerId = _designerId;
//@synthesize image = _image;
//
//+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict {
//    return [[self alloc] initWithDictionary:dict];
//}
//
//- (instancetype)initWithDictionary:(NSDictionary *)dict {
//    self = (dict && [dict isKindOfClass:[NSDictionary class]]) ? [super init] : nil;
//    if(self && [dict count]) {
//        self.name = [dict valueForKey:@"name"];
//        self.price = [dict valueForKey:@"price"];
//        self.count = [dict valueForKey:@"count"];
//        self.designerId = [dict valueForKey:@"designerId"];
//        self.image = [dict valueForKey:@"image"];
//    }
//    return self;
//}
//
//-(id)initWithCoder:(NSCoder *)aDecoder {
//    if (self = [super init]) {
//        self.name = [aDecoder decodeObjectForKey:@"name"];
//        self.price = [aDecoder decodeObjectForKey:@"price"];
//        self.count = [aDecoder decodeObjectForKey:@"count"];
//        self.designerId = [aDecoder decodeObjectForKey:@"designerId"];
//        self.image = [aDecoder decodeObjectForKey:@"image"];
//    }
//    return self;
//}
//
//-(void)encodeWithCoder:(NSCoder *)aCoder {
//    [aCoder encodeObject:_name forKey:@"name"];
//    [aCoder encodeObject:_price forKey:@"price"];
//    [aCoder encodeObject:_count forKey:@"count"];
//    [aCoder encodeObject:_designerId forKey:@"designerId"];
//    [aCoder encodeObject:_image forKey:@"image"];
//}

@end
